package com.leigq.www.mybatisplusstudy.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leigq.www.mybatisplusstudy.domain.entity.Department;
import com.leigq.www.mybatisplusstudy.domain.service.impl.base.IMyService;

/**
 * <p>
 *  部门服务接口
 * </p>
 *
 * @author leigq
 * @since 2019-06-14
 */
public interface IDepartmentService extends IMyService<Department> {

    /**
     * 查询所有部门
     *
     * @param page the page
     * @return the page
     */
    IPage<Department> listDepartments(Page<Department> page);

    /**
     * 添加部门
     *
     * @return the boolean
     */
    Boolean addDepartments();

    /**
     * 修改部门
     *
     * @return the boolean
     */
    Boolean updateDepartments(Long id);
}
